<?php
//	20090211
// 	GetLangString updated

include("status.php");


	$query        = "SELECT * from users where (status & $STA_MEMBER) and not (status & $STA_BANNED) order by `signup` desc limit 5";
	$result = mysql_query($query);
	if (mysql_num_rows($result)){ 
		while ($profileinfo = mysql_fetch_array($result)){
			$status = GetStatusImg($profileinfo['status']);
			$img = "/index.php?do=getphoto&id=".$profileinfo['photo']."&size=75&square=1";			
			//$img = "images/sheep.png";
			$profiles .= " <div class=\"userthumb\">
											<a href=\"/index.php?do=profile&profile_id=".$profileinfo['id']."\">												
											".$profileinfo['name']."</a><br>$status<br><img src=\"$img\" title=\"$TXT_NOIMG\" 
												width=\"75\" height=\"75\"></div>";
		}
	$SITE_MIDDLE .= FormatElement ( GetLangString($lang,"txt_newestprofiles"),$profiles);
	}

?>
